package com.abel.demo.common;

/**
 * Author: Abel.lin
 * Date: 2021/6/30 11:20
 * Company: Abel.Studio
 * Description:
 */
public class BusinessException extends RuntimeException {

    private RespCode code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(RespCode code, String message) {
        super(message);
        this.code = code;
    }

    public RespCode getCode() {
        return code;
    }
}